import request from "./request";

// 获取所有的标签
export function getTagAlls(data) {
  return request({
    url: '/mgr/document/dc/tg/labels',
    method: 'get',
    params:data
  })
}
// 单条修改新增
export function oneEditTag(data){
  return request({
    url:`/mgr/document/dc/tg/update/one`,
    method:"post",
    data
  })
}
// 标签修改新增
export function editTag(data){
  return request({
    url:`/mgr/document/dc/tg/update`,
    method:"post",
    data
  })
}
// 修改新增文档标签
export function editDocTag(data){
  return request({
    url:`/mgr/document/dc/tg/tag/binding/${data.dcId}`,
    method:"post",
    data
  })
}

// 删除文档标签
export function deleteDocTag(tagId){
  return request({
    url:`/mgr/document/dc/tg/del/${tagId}`,
    method:"delete"
  })
}

